# code: PY
# time:2020/11/29
from flask import Flask, request, redirect, abort, render_template

app = Flask(__name__)

@app.route('/books/')
def index():
   books = [
       {
           'name':u'西游记',
           'author':u'吴承恩',
           'price':109
       },
       {
           'name': u'西游记',
           'author': u'吴承恩',
           'price': 109
       },
       {
           'name': u'红楼梦',
           'author': u'曹雪芹',
           'price': 200
       },
       {
           'name': u'一群混子',
           'author': u'气死人了',
           'price': 0
       }

   ]

   return render_template('index_for.html',_books =books)


if __name__ == "__main__":
    app.run(debug=True)